<?php
class Cms_View_Helper_CmsUrl
{
    public $view;

    public function auth($params,$url)
    {
		$auth = Zend_Auth::getInstance();
		
		if (!$auth->hasIdentity()) 
		{
			return 'guest';
		}
		else
		{
			$user = new Zend_Session_Namespace('Zend_Auth');
			return $user->userRole;
		}
    }

    public function setView(Zend_View_Interface $view)
    {
        $this->view = $view;
    }
}
?>